from selenium import webdriver

driver = webdriver.Chrome()
# 或者选择其他类型的webdriver如Firefox, Edge等

from selenium.webdriver.support.ui import Select

select_element = Select(driver.find_element_by_name('name_of_select_tag'))
select_element.select_by_visible_text('option text')